package com.fangxing;

import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@SpringBootApplication
@EnableConfigurationProperties
public class AppBaseApplication {

	public static void main(String[] args) {
		SpringApplication application = new SpringApplication(AppBaseApplication.class);
		application.setBannerMode(Banner.Mode.OFF);
		application.run(args);
		//SpringApplication.run(AppBaseApplication.class, args);
	}

	@RequestMapping("/")
	public String index(){
		return "hello spring boot";
	}
}
